import request from '../request'
// 用户登录
export function sysLogin(params) {
  return request({
    url: `/sys-user/login`,
    method: 'post',
    data: params
  })
}

// 第一次登录强制修改密码
export function firstLoginEditPassWord(params) {
  return request({
    url: `/sys-user/firstLoginEditPassWord`,
    method: 'put',
    data: params
  })
}

// 修改密码
export function updatePassWord(params) {
  return request({
    url: `/sys-user/updatePassWord`,
    method: 'put',
    data: params
  })
}

// 获取预约超时的患者信息
export function getAppointmentTimeOut(params) {
  return request({
    url: `/patient-bed-middle/getAppointmentTimeOut`,
    method: 'get',
    data: params
  })
}

// 生成sql语句
export function JudgmentCodeGenerator(params) {
  return request({
    url: `/CWJudgmentGenerator/JudgmentCodeGenerator`,
    method: 'post',
    data: params
  })
}



//日间病房床位最大数
export function getMaxCount(params){
  return request({
    url: `/DayConfiguration/getMaxCount`,
    method: 'get',
    params
  })
}

//日间病房床配置回显
export function getAllInfo(params){
  return request({
    url: `/DayConfiguration/getAllInfo`,
    method: 'get',
    params
  })
}

//日间病房配置保存
export function save(params){
  return request({
    url: `/DayConfiguration/save`,
    method: 'post',
    data:params
  })
}

//更新日间配置
export function updateRJSet(params){
  return request({
    url: `/DayConfiguration/updateRJSet/${params.type}`,
    method: 'post',
    data:params.weekAppointmentDto
  })
}
